<?php
class Application {
	private $_module;
	private $_controller;
	public function __construct() {
		$this->_init ();
	}
	private function _init() {
		$this->_module = $_GET ['_module'];
		switch ($this->_module) {
			case 'Xe' :
				$this->_controller = new XeController();
				break;
			case 'Taixe' :
				$this->_controller = new TaixeController();
				break;
			case 'Chuyen' :
				$this->_controller = new ChuyenController();
				break;
			case 'Diem' :
				$this->_controller = new DiemController();
				break;
			default :
				;
				break;
		}
	}
	public function run() {
		$this->_controller->_prerun();
		$this->_controller->run();
		$this->_controller->_postrun();
	}
}
?>